-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error when missing tpv and platform present #3691
Conversation
d5a775b
to
5c7a7ef
Compare
5c7a7ef
to
e5206dd
Compare
e5206dd
to
dbd5e0f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting approach. I left some comments on Validation Rule.
src/NuGet.Core/NuGet.Packaging/Rules/TargetFrameworkMissingPlatformVersionRule.cs
Outdated
Show resolved
Hide resolved
src/NuGet.Core/NuGet.Packaging/Rules/TargetFrameworkMissingPlatformVersionRule.cs
Outdated
Show resolved
Hide resolved
src/NuGet.Core/NuGet.Packaging/Rules/TargetFrameworkMissingPlatformVersionRule.cs
Outdated
Show resolved
Hide resolved
src/NuGet.Core/NuGet.Packaging/Rules/TargetFrameworkMissingPlatformVersionRule.cs
Outdated
Show resolved
Hide resolved
src/NuGet.Core/NuGet.Packaging/Rules/TargetFrameworkMissingPlatformVersionRule.cs
Outdated
Show resolved
Hide resolved
@nkolev92 is this what you meant? |
Yep, looks like the correct place for the validation. |
Tests are pushed. Providing everything passes, this is all the code to review, I think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. 👏 👏 👏 👏 👏
I think we can add a few more tests, but looks good beyond that.
Bug
Fixes: NuGet/Home#9441
Regression: No
Fix
This makes pack and restore fail if there's a framework with a platform but without a
Testing/Validation
Tests Added: Yes
Validation:
I manually checked it works for dependencygroups